<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
   xmlns:f="http://java.sun.com/jsf/core"
   xmlns:h="http://java.sun.com/jsf/html"
   xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head><title>Listado de cursos</title></h:head>
<h:body>

<h1>Busqueda cursos</h1>

<h:messages></h:messages>

<h:form >
<h:inputText binding="#{listadoCursosBean.texto}">
<f:ajax render = ":conAjax:tablita" event="keyup" listener="#{listadoCursosBean.buscaDinamica}" ></f:ajax>
</h:inputText>
</h:form>

<h:form id="conAjax">
    <br></br>
	<h:dataTable id = "tablita" value="#{listadoCursosBean.cursos}" 
	var="curso" binding="#{listadoCursosBean.tabla}">
	<h:column >#{curso.nombre} 
	</h:column> 
</h:dataTable>
</h:form>



</h:body>
</html>